import time
from mails import demo,mail
timeTable = [
    ["20:00:00", 0]
]
while True:
    time.sleep(0.4)
    localtime = time.localtime(time.time())
    for ii in timeTable:
        struct_time = time.strptime(ii[0], "%H:%M:%S")
        if (localtime.tm_hour == struct_time.tm_hour) and (localtime.tm_min == struct_time.tm_min) and \
                (localtime.tm_sec == struct_time.tm_sec):
            demo(Receiver="********@qq.com")
            time.sleep(2)
